<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
       <h1>系统主页面</h1>
<%
    int maxInactiveInterval = session.getMaxInactiveInterval();
    session.setMaxInactiveInterval(60); // 秒

    //添加值到session
    session.setAttribute("username","lisi");
    //替换session中的值
    session.setAttribute("username","zs");
    //移除session中的值
    session.removeAttribute("username");
%>
<h1>session time:<%=maxInactiveInterval%></h1>

</body>
</html>
